/** 
 * @memo 简化创建Ext-win方法 
 * @author mengqingyu
 * @sample 粘贴用
 	   var win = new Ext.ux.Window({
			id:'win',
			title:'',
			width: '300',
			height:'500',
			items: [],
			buttons:[{
				text:'保存',
				handler:function(){
					win.hide();
				}
			}]
		});
		
 * @detail 注释
	layout: 'fit',			items内组建填充适应窗口大小
	closeAction:'hide',		窗口隐藏
	buttonAlign:'center',	按钮居中
	modal:true,				模态对话框
	resizable:false,		禁止改变窗口大小
 */
Ext.ns('Ext.ux');
Ext.ux.Window = Ext.extend(Ext.Window, {
    initComponent:function() {
		Ext.ux.Window.superclass.initComponent.apply(this, arguments);
    },
    layout: 'fit',
	closeAction:'hide',
	buttonAlign:'center',
	closable : 'hide',
	modal:true,
	resizable:false
});
Ext.reg('xwindow', Ext.ux.Window);